%% -*- mode:erlang -*-
{minimum_otp_vsn, "21.0"}.

{deps, [{jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}},
        {eetcd, {git, "https://github.com/zhongwencool/eetcd", {tag, "v0.3.4"}}},
        {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe", {tag, "1.0.0"}}},
        {mria, {git, "https://github.com/emqx/mria", {tag, "0.8.8"}}}
       ]}.

{erl_opts, [warn_unused_vars,
            warn_shadow_vars,
            warn_unused_import,
            warn_obsolete_guard,
            warnings_as_errors,
            debug_info,
            compressed %% for edge
           ]}.

{validate_app_modules, true}.

{xref_checks, [undefined_function_calls, undefined_functions,
               locals_not_used, deprecated_function_calls,
               warnings_as_errors, deprecated_functions
              ]}.

{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_export_enabled, true}.

{dialyzer,
 [{warnings, [unknown]},
  {plt_extra_apps, [jiffy, mria]}
 ]}.

{profiles,
 [{test,
   [{plugins, [{coveralls, {git, "https://github.com/emqx/coveralls-erl", {branch, "github"}}}]},
    {deps, [{meck, "0.8.13"},
            {proper, "1.3.0"}
           ]},
    {erl_opts, [debug_info]},
    {src_dirs, ["src", "test/test_src"]}
   ]}
 ]}.

{ct_readable, true}.
